package model.tiles;

import model.Smurf;

public class GrassTile extends AbstractTile{

	public GrassTile(){
		setIcon("images//tile_grass.png");
		setFriction(0.5);
	}

	@Override
	public void action(Smurf smurf) {
		smurf.setY(smurf.getY()-smurf.getYSpeed());
		smurf.setYSpeed(0);
	}

	@Override
	public boolean canJump() {
		return true;
	}
	
}